 package com.oanda.blackberry.util;
 
 public abstract class AbstractModel
 {
   protected PropertyChangeSupport propertyChangeSupport;
 
   public AbstractModel()
   {
     this.propertyChangeSupport = new PropertyChangeSupport();
   }
 
   public void addPropertyChangeListener(PropertyChangeListener listener) {
     this.propertyChangeSupport.addPropertyChangeListener(listener);
   }
 
   public void removePropertyChangeListener(PropertyChangeListener listener) {
     this.propertyChangeSupport.removePropertyChangeListener(listener);
   }
 
   protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) {
     this.propertyChangeSupport.firePropertyChange(propertyName, oldValue, newValue);
   }
}

